<?php

/**
 * 表示类
 *
 * @author Zhangyuyi
 * @version $Id: Representor.php 35 2011-05-11 17:11:35Z yeszyy@gmail.com $
 */
class Representor {
	private $_data;

	public static function isVaildHttpAccept($httpAccept) {
		return in_array(strtolower($httpAccept), array('json', 'html', 'xml'));
	}

	public function setData(array $data) {
		$this->_data = $data;
	}

	protected function getData() {
		return $this->_data;
	}
}